import Cookies from 'js-cookie'

const TokenKey = 'x-access-token'
const LangKey = 'language'
const userNameKey = 'userName'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getLang() {
  return Cookies.get(LangKey)
}

export function setLang(lang) {
  return Cookies.set(LangKey, lang)
}

export function removeLang() {
  return Cookies.remove(LangKey)
}
export function getUserName() {
  return Cookies.get(userNameKey)
}

export function setUserName(userName) {
  return Cookies.set(userNameKey, userName)
}

export function removeUserName() {
  return Cookies.remove(userNameKey)
}
